﻿using SeckillService.Services.Dtos;
using Volo.Abp.Application.Services;
using Volo.Abp.Domain.Repositories;

namespace SeckillService.Services
{
    /// <summary>
    /// 商品service接口
    /// </summary>
    public interface ISeckillService : ICrudAppService<SeckillDto, Guid>
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="SeckillId"></param>
        /// <returns></returns>
        Task<List<SeckillProductDto>> GetSeckillProductsAsync(Guid SeckillId);

        Task<SeckillProductDto> GetSeckillProductAsync(Guid SeckillProductId);

        /// <summary>
        /// 修改秒杀商品库存
        /// </summary>
        /// <param name="updateSeckillProductStockDto"></param>
        /// <returns></returns>
        Task UpdateSeckillProductStockAsync(UpdateSeckillProductStockDto updateSeckillProductStockDto);
    }
}
